#ifndef _FONT_MANAGER_H
#define _FONT_MANAGER_H

#include<command.h>



typedef struct FontBitMap{
	Region tRegion;
	int iCurOriginX;
	int iCurOriginY;
	int iNextOriginX;
	int iNextOriginY;
	unsigned char * pucBuffer;
}FontBitMap , *PFontBitMap;


typedef struct FontOpr{
	char * name;
	int (*FontInit)(char * FileName);
	int (*SetFontSize)(int iFontsize);
	int (*GetFontBitMap)(unsigned int dwCode , PFontBitMap ptFontBitMap);
	int (*GetStringRegionCar)(char * str, PRegionCartesian ptRegionCartesian);
	struct FontOpr * ptNext;
}FontOpr , *PFontOpr;

void Fonts_Register(PFontOpr pFontOpr);
void Fonts_Init(void);
int Fonts_Select(char * aFontOprname , char * aFontFileName);
int GetFontBitMap(unsigned int dwCode , PFontBitMap ptFontBitMap);
int Font_SetSize(int FontSize);
int Gets_StringRegionCar(char * str, PRegionCartesian ptRegionCartesian);

#endif
